package cn.codeforfun.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Package cn.codeforfun.controller
 * Project springcloud-practice
 * Author Bin.Wang
 * Created on 2017/4/13 17:45
 * version 1.0.0
 */
@RestController
public class TestController {
  @RequestMapping(value = "/add", method = RequestMethod.GET)
  public String add(@RequestParam("a") String a, @RequestParam("b") String b) {
    return String.valueOf(Integer.valueOf(a) + Integer.valueOf(b));
  }
}
